package com.tongji.diy.controller.furnitureOptimizationController
{
	import com.tongji.diy.event.furnitureOptimizationEvent.IterationCallbackEvent;
	import com.tongji.diy.model.furniturePlacementOptimization.FurnitureOptimizationModel;
	import com.tongji.diy.model.furniturePlacementOptimization.IntegrateModel;
	
	import org.robotlegs.mvcs.Command;
	
	public class IterationCallbackCommand extends Command
	{
		[Inject]
		public var event:IterationCallbackEvent;
		
//		[Inject]
//		public var model:FurnitureOptimizationModel;
		[Inject]
		public var model:IntegrateModel;
		
		public function IterationCallbackCommand()
		{
			super();
		}
		
		override public function execute():void
		{
			switch(event.type)
			{
				case IterationCallbackEvent.CALL_BACK:
					model.sceneCallBackHandler();
					break;
			}
		}
	}
}